package com.company.other;

import java.util.LinkedList;
import java.util.Scanner;

public class Main01 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s1 = sc.next();
        String s2 = sc.next();
        LinkedList<Character> linkedList = new LinkedList<>();

        int i = 0, j = 0;
        while (i < s1.length() && j < s2.length()) {
            if (s1.charAt(i) != s2.charAt(j)) {
                linkedList.offer(s1.charAt(i));
                i++;
            } else {
                i++;j++;
            }
        }
        while (j < s2.length()) {

        }
    }

}
